//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_1822 {
    public demo_1822() {
    }

    public int arraySign(int[] nums) {
        int sum = 1;

        for(int num : nums) {
            if (num < 0) {
                sum = -sum;
            } else if (num == 0) {
                return 0;
            }
        }

        return sum;
    }
}
